﻿@model Eieboom.Models.ChangePasswordModel
@using res = Sob.Resource.Views.Account.Account;
@{
    ViewBag.Title = res.ChangePWD;
}

<h2>@res.ChangePWD</h2>
<div class="tipWords">
<p>
    @res.PWD_Form_Tip
</p>
<p>
    @res.PWD_Length_Tip1 @Membership.MinRequiredPasswordLength @res.PWD_Length_Tip2
</p>
</div>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, res.PWD_Error_Tip)
    <div>
        <fieldset>
            <legend>@res.AccountInfo</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.OldPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.NewPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="@res.ChangePWD" />
            </p>
        </fieldset>
    </div>
}
